<%--
  Created by IntelliJ IDEA.
  User: HJX
  Date: 2021/10/17
  Time: 17:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="java.sql.*" language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>注册界面</title>
    <style type="text/css">
        html,
        body {
            height: 100%;
        }

        * {
            margin: 0;
            padding: 0;
        }

        #box {
            height: 100%;
            width: 100%;
            /*这里显示报错，不用管他，只要服务器可以访问就ok*/
            background-image: url("/super/img/bg.png");
            background-size: cover;
        }

        #container {
            box-shadow:2px 2px 10px #909090;
            background-color: lightgoldenrodyellow;
            position: absolute;
            font-size: 15px;
            height: 40%;
            width: 30%;
            border: 1px solid black;
            margin-left: 30%;
            margin-top: 10%;
        }

        #login_register {
            margin-top: 20px;
            margin-left: 100px;
        }

        #login_register a {
            font-size: 20px;
        }

        #login_register a {
            text-decoration: none;
            margin-left: 50px;
        }

        #login_register a:link {
            color: black;
        }

        #login_register a:visited {
            color: black;
        }

        #login_register a:hover {
            color: dodgerblue;
        }

        #user {
            margin-top: 30px;
            margin-left: 70px;
        }

        #user input {
            height: 30px;
            width: 250px;
        }

        #pass {
            margin-top: 30px;
            margin-left: 70px;
        }

        #pass input {
            height: 30px;
            width: 250px;
        }

        #button {
            margin-top: 40px;
            margin-left: 50px;
        }

        #button input {
            cursor: pointer;
            height: 30px;
            width: 100px;
            margin-left: 20px;
        }

        input {
            font-size: 15px;
        }
    </style>
    <script type="text/javascript" src="/super/js/jquery-1.11.0.js"></script>
</head>
<body>
<div id="box">
    <form action="/super/register" method="get">
        <div id="container">
            <!--登录、注册-->
            <div id="login_register">
                <a href="/super/LoginValidate/login.jsp" class="login">登录</a>
                <a href="/super/LoginValidate/register.jsp" class="register">注册</a>
            </div>
            <!--用户名-->
            <div id="user">
                <span>用户名</span>
                <input type="text" name="user"/>
            </div>
            <!--密码-->
            <div id="pass">
                <span>密&nbsp;&nbsp;&nbsp;码</span>
                <input type="password" name="pass"/>
            </div>
            <!--提交、重置按钮-->
            <div id="button">
                <input type="submit" value="注册" />
                <input type="reset" value="重置" />
            </div>
        </div>
    </form>
</div>

<script>
    $('.register').css("color","#feabf7")

    $('.login').click(function(){
        $('a').css("color","black")
        $(this).css("color","#feabf7")
    })

    $('.register').click(function(){
        $('a').css("color","black")
        $(this).css("color","#feabf7")
    })
</script>
</body>
</html>
